package cn.com.chengmandian.bike.mapper;

import cn.com.chengmandian.bike.model.EbDeviceBike;
import cn.com.chengmandian.bike.model.vo.DeviceBikeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 电单车运营-车辆信息表 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-08
 */
@Mapper
public interface EbDeviceBikeMapper extends BaseMapper<EbDeviceBike> {
    List<DeviceBikeVo> getNearBikeList(@Param("areaId") Integer areaId,
                                       @Param("lowSoc") Integer lowSoc,
                                       @Param("lat") BigDecimal lat,
                                       @Param("lng") BigDecimal lng,
                                       @Param("minLat") BigDecimal minLat,
                                       @Param("maxLat") BigDecimal maxLat,
                                       @Param("minLng") BigDecimal minLng,
                                       @Param("maxLng") BigDecimal maxLng);

    DeviceBikeVo getBike(@Param("bikeNo") String bikeNo);
}
